/*
 * SpectraSTPredictionModelParams.cpp
 *
 *  Created on: 29 Jul, 2012
 *      Author: yhu
 */

#include "SpectraSTPredictionModelParams.hpp"
using namespace std;

SpectraSTPredictionModelParams::SpectraSTPredictionModelParams(){
	setDefault();
}

SpectraSTPredictionModelParams::~SpectraSTPredictionModelParams(){

}

void SpectraSTPredictionModelParams::printAdvancedOptions(ostream& out){
	out << "spectrast -p_ (advanced options of using prediction model)" << endl;
}

void SpectraSTPredictionModelParams::printUsage(ostream& out){
	out << "spectrast -p_ (details of usage)" << endl;
}

void SpectraSTPredictionModelParams::setDefault(){

}

bool SpectraSTPredictionModelParams::addOption(string option){
	cout << "SpectraSTPredictionModelParams::addOption" << option << endl;

	if (option.length() == 0){
		return true;
	}else{
		if (isExpectingArg(option)){
			return (false);
		}else {
			m_options.push_back(option);
			return (true);
		}
	}
}

void SpectraSTPredictionModelParams::finalizeOptions(){
	cout << "SpectraSTTrainModelParams::finalizeOptions" << endl;
}

void SpectraSTPredictionModelParams::finalizeAdvancedOption(string option){
	cout << "SpectraSTTrainModelParams::finalizeAdvancedOption" << option <<  endl;
}

bool SpectraSTPredictionModelParams::isExpectingArg(string option){
	if ((option == "M")|| (option == "c") || (option == "o")){
		return (true);
	}
	return (false);
}
